<template>
  <div style="height:100%">
    <!-- <h2>LOADING</h2> -->
  </div>
</template>

<script>
// import { mapGetters } from 'vuex'
// import { getProcess } from '@/api/conf'
export default {
  name: 'Dashboard',
  data() {
    return {
      // list: [],
      // showLineImg: false,
      // show: false,
      // regionId: null,
      // loading: true
    }
  },
  // computed: {
  //   ...mapGetters([
  //     'roles',
  //     'regionid',
  //     'lineId'
  //   ])
  // },
  created() {
    // this.clickBtn()
    // this.$router.push('/screen')
    // const matched = this.$route.matched.filter(item => item.meta && item.meta.title)
    // console.log('dashboard: ', this.$router.options.routes)
    // console.log('dashboard: regionid: ', this.regionid, 'lineId: ', this.lineId)
    // console.log('matched: ', matched)
    // this.rerenderRoutes()
    // this.getRegion()
    // if (this.$router.options.routes !== undefined) {
    //   location.reload()
    // }
  },
  methods: {
    // getRegion() {
    //   let firstLogin = this.$Cookies.get('firstLogin') === 'true' // $Cookies拿到的是String类型，转为Boolean
    //   // console.log(firstLogin)
    //   getProcess().then(res => {
    //     this.regionId = res.data[0].id
    //     if (firstLogin) {
    //       firstLogin = false
    //       // console.log(firstLogin)
    //       this.$router.push({ path: '/screen/process-' + this.regionId + '/process-' + this.regionId + '-0' })
    //       this.loading = false
    //       // window.location.reload()
    //     } else {
    //       this.$router.push({ path: '/screen/process-' + this.regionId + '/process-' + this.regionId + '-0' })
    //     }
    //   })
    // }
  }
}
</script>

<style lang="scss" scoped>
@import "~@/styles/screenPad.scss";

.dashboard-container{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;

.ProductFeatures{
  .el-row{
    height: 1005;
  }
}
}
</style>
